import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/system/dict/type/list',
    method: 'post',
    data: data
  })
}
export function listByPage(data) {
  return request({
    url: '/system/dict/type/listByPage',
    method: 'post',
    data: data
  })
}
export function add(data) {
  return request({
    url: '/system/dict/type/add',
    method: 'post',
    data: data
  })
}
export function edit(data) {
  return request({
    url: '/system/dict/type/edit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/system/dict/type/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getInfo(data) {
  return request({
    url: '/system/dict/type/' + data,
    method: 'get'
  })
}

